home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
E
/
EditString.cpt
/
EditString Stack
/
card_3618.txt
< prev
next >
Wrap
Text File
|
1990-06-22
|
2KB
|
65 lines
-- card: 3618 from stack: in
-- bmap block id: 4477
-- flags: 0000
-- background id: 3493
-- name: count
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=88 top=211 right=233 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Do It
----- HyperTalk script -----
on mouseUp
put editString("count", background field "A", cd fld what) into background field "B"
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=335 top=217 right=234 bottom=399
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 97
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: what
-- part contents for background part 1
----- text -----
Count
-- part contents for background part 2
----- text -----
Count will return the total number of occurances of a specific character within a block of text. The maximum size of the text
(or data holder) is 30000 bytes.
-- part contents for background part 3
----- text -----
editString("count", source, character)
• source is the input text
• character is the character to search for
put editString("count", field "A", ":") into field "B"
This will return how manu occurances of ":" there are in field "A"
-- part contents for background part 4
----- text -----
My Hard Disk:HyperCard:Super Stuff:My Stuff:Your Stuff
-- part contents for card part 3
----- text -----
: